package ru.tennisworld.user.repositories;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ru.tennisworld.user.entities.TennisUser;

import java.util.Optional;

@Repository
public interface TennisUserRepository extends JpaRepository<TennisUser, Long> {

    Optional<TennisUser> findByLogin(String login);

}
